﻿
using System;
namespace gbL.NetBoard
{
    internal class BlackboardEntry : IBlackboardEntry
    {
        public BlackboardEntry(object tag, object from, object message)
        {
            _tag = tag;
            _from = from;
            _message = message;
            if (message != null) _messageType = message.GetType();
        }

        private readonly object _tag;
        private readonly object _from;
        private readonly object _message;
        private readonly Type _messageType;

        public object Tag { get { return _tag; } }

        public object From { get { return _from; } }

        public object Message { get { return _message; } }

        public Type MessageType { get { return _messageType; } }
    }
}
